GtkEntryCompletion: call setter for "text-column"
authorLars Uebernickel <lars.uebernickel@canonical.com>
Thu, 31 Oct 2013 06:34:50 +0000 (23:34 -0700)
committerLars Uebernickel <lars.uebernickel@canonical.com>
Fri, 1 Nov 2013 15:24:16 +0000 (08:24 -0700)
Call gtk_entry_completion_set_text_column() when setting the
"text-column" property directly.

The completion appeared empty when setting "text-column" directly (for
example from a GtkBuilder file), because the setter creates and adds the
GtkCellRendererText.

https://bugzilla.gnome.org/show_bug.cgi?id=710533

gtk/gtkentrycompletion.c

index b62f81d13414e1fc216b245cca4caf8525f382ac..0d77663970084ce8e056e578a7c354558a297d0b 100644 (file)
@@ -653,7 +653,8 @@ gtk_entry_completion_set_property (GObject      *object,
         break;
 
       case PROP_TEXT_COLUMN:
-        priv->text_column = g_value_get_int (value);
+        gtk_entry_completion_set_text_column (completion,
+                                              g_value_get_int (value));
         break;
 
       case PROP_INLINE_COMPLETION: